home *** CD-ROM | disk | FTP | other *** search
/ OctaMED Sound Studio 1 / OctaMED SoundStudio V1.iso / soundstudio v1 / programmers / chinfo.i < prev    next >
Text File  |  1996-06-18  |  2KB  |  43 lines

  1.  
  2. ; -------------------------------------------------------------------
  3. ; ChannelInfo structure
  4. ; -------------------------------------------------------------------
  5.             RSRESET
  6. ci_sample_start        RS.L    1 ;sample start address
  7. ci_rightch_offs        RS.L    1 ;right ch start address
  8. ci_mixregs        RS.L    0 ;MIX REGISTERS START HERE
  9. ; DON'T CHANGE THE ORDER OF THE FOLLOWING FIVE OFFSETS
  10. ci_offset        RS.L    1 ;current sample offset
  11. ci_fraction        RS.L    1 ;1/65536th of ci_offset (W)
  12. ci_advance        RS.L    1 ;offset change per mixed sample
  13. ci_advfract        RS.L    1 ;1/65536th of ci_advance (W)
  14. ci_mixroutine        RS.L    1 ;mix routine address
  15. ci_endoffset        RS.L    1 ;sample end offset
  16. ci_restartoffset    RS.L    1 ;loop restart change
  17. ci_newstart_addr    RS.L    1 ;new sample start addr (synth)
  18. ci_newendoffset        RS.L    1 ;new sample end offset (synth)
  19. ci_voltable_l        RS.L    1 ;pointer to current vol table (L)
  20. ci_voltable_r        RS.L    1 ;pointer to current vol table (R)
  21. ci_volshift_l        RS.W    1 ;16-bit sample volume shift (L)
  22. ci_volshift_r        RS.W    1 ;16-bit sample volume shift (R)
  23. ci_flags        RS.B    1 ;flags
  24. ci_pad            RS.B    3 ;longword align
  25. ci_prevsample        RS.W    1 ;for smoothing routine
  26. ci_currsample        RS.W    1 ;for smoothing routine
  27. ci_nextsample        RS.W    1 ;for smoothing routine
  28. ci_prevsample_r        RS.W    1 ;for smoothing routine
  29. ci_currsample_r        RS.W    1 ;for smoothing routine
  30. ci_nextsample_r        RS.W    1 ;for smoothing routine
  31. ci_altmixroutine    RS.L    1 ;mix routine for other direction
  32. ci_sizeof        RS.L    0
  33.  
  34. ;ci_flags bit numbers
  35. CHFLAGB_MUTED        EQU    7
  36. CHFLAGB_LOOP        EQU    6
  37. CHFLAGB_STARTSYN    EQU    5
  38. CHFLAGB_16BIT        EQU    4
  39. CHFLAGB_BACKW        EQU    3
  40. CHFLAGB_STEREO        EQU    2
  41. CHFLAGB_MIXING_RIGHT    EQU    1 ;a flag bit for smoothing routine
  42. CHFLAGB_PINGPONG    EQU    0
  43.